<?php
#logout user and destroys the session
session_start();


unset($_SESSION['valid_user']); //unset the active user here
unset($_SESSION['meta_data']);
session_destroy();

echo '<script>window.location.href = "../index.php"</script>';
?>